package com.hksj.base.vo;

import com.hksj.base.entity.Properties;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
public class ChartVO implements Serializable {

    public ChartVO(String property, String unit, List<Properties> axislist) {
        this.property = property;
        this.axislist = axislist;
        this.unit = unit;
    }

    public ChartVO(String property, String unit, String propertyName,List<Properties> axislist) {
        this.property = property;
        this.axislist = axislist;
        this.unit = unit;
        this.propertyName = propertyName;
    }

    @ApiModelProperty("属性名称")
    private String property;

    @ApiModelProperty("属性名称对应name")
    private String propertyName;

    @ApiModelProperty("单位")
    private String unit;

    @ApiModelProperty("点位数据")
    private List<Properties> axislist;
}
